//
//  IMConfigManager.m
//  MLIM
//
//  Created by molon on 15/7/17.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import "IMConfigManager.h"

@implementation IMConfigManager

+ (instancetype)manager
{
    static id _sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _sharedInstance = [[[self class] alloc]init];
    });
    return _sharedInstance;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        //下面这些都是默认值
        self.imageBundleName = @"IMImages.bundle";
        self.recevierTextColor = self.senderTextColor = [UIColor blackColor];
        self.recevierAudioDurationTextColor = self.senderAudioDurationTextColor = [UIColor colorWithWhite:0.614 alpha:1.000];
        self.recevierMessageBackgoundCapInsets = UIEdgeInsetsMake(28, 7.5f+5.0f, 5, 5);
        self.senderMessageBackgoundCapInsets = UIEdgeInsetsMake(28, 5, 5, 7.5f+5.0f);
        self.messageBackgroundArrowWidth = 7.5f;
        
        self.backgroundColorForIMConversationViewController = [UIColor colorWithRed:0.898 green:0.902 blue:0.906 alpha:1.000];
        self.backgroundColorForIMConversationListViewController = [UIColor whiteColor];
        self.backgroundColorForIMConversationListCell = [UIColor colorWithWhite:0.975 alpha:0.220];
        
        self.dateBackgroundColorForIMConversationViewController = [UIColor colorWithRed:0.765 green:0.769 blue:0.773 alpha:1.000];
        self.dateColorForIMConversationViewController = [UIColor whiteColor];
    }
    return self;
}
@end
